/**
 * 
 */
package org.cuatrovientos.erp.model;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author luser
 *
 */
public class Delegation {

	@Min(value=1,message="{delegation.id.error}")
	private int id;
	
	@NotNull(message="{delegation.name.error}")
	private String name;
	
	@NotNull(message="{delegation.description.error}")
	private String description;
	
	@NotNull(message="{delegation.adress.error}")
	private String adress;
	
	@Min(value=1,message="{delegation.idCity.error}")
	private int idCity;

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the adress
	 */
	public String getAdress() {
		return adress;
	}

	/**
	 * @param adress the adress to set
	 */
	public void setAdress(String adress) {
		this.adress = adress;
	}

	/**
	 * @return the idCity
	 */
	public int getIdCity() {
		return idCity;
	}

	/**
	 * @param idCity the idCity to set
	 */
	public void setIdCity(int idCity) {
		this.idCity = idCity;
	}
	
}
